<?xml version  = "1.0" 
      encoding = "ISO-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<ui:composition xmlns      = "http://www.w3.org/1999/xhtml"
              	xmlns:f    = "http://java.sun.com/jsf/core"
	            xmlns:h    = "http://java.sun.com/jsf/html"
	            xmlns:p    = "http://primefaces.org/ui"	            
	            xmlns:ui   = "http://java.sun.com/jsf/facelets"
	            template   = "/layout/layoutPrincipal.xhtml"
	            xmlns:formularios = "http://java.sun.com/jsf/composite/formularios">
	
	<ui:define name = "Conteudo">
		<h:form id="frCadastro" prependId="false">
		<h1>Valida��o de Documentos do Recadastramento</h1>
			
			<p:tabView id = "tbServidor">
				<p:tab id="tab1" title="Dados Pessoais">
					<formularios:dadosPessoais/>
				</p:tab>
				<p:tab id="tab2" title="Documentos">
					<formularios:dadosDocumentos/>
				</p:tab>
				<p:tab id="tab3" title="Casamento">
					<formularios:dadosCasamento/>
				</p:tab>
				<p:tab id="tab4" title="Endere�o">
					 <formularios:dadosEndereco/>
				</p:tab>
				<p:tab id="tab5" title="Contatos">
					<formularios:dadosContato/>
				</p:tab>				
							
			</p:tabView>
			
			<p:commandButton value="Validar" 
			                 action="#{cadastroServidorMB.salvarCadastro}" 
			                 icon="/layout/imagens/icon-salvar.png" 
			                 async="true" 
			                 update="@form">
				<p:confirmDialog yesLabel="Sim" 
				                 noLabel="N�o" 
								 message="Salva os dados?" 
								 header="Valida��o do Recadastramento" 
								 severity="warn" 
								 fixedCenter="true" 
								 draggable="false"/>
			</p:commandButton>
			
			
 			<p:commandLink action="#{cadastroServidorMB.salvarCadastro}" update="@form"  ajax="false" title="Salvar">
                  <h:graphicImage url="/layout/imagens/icon-salvar.png" />
 			</p:commandLink>
 			
		</h:form>
	</ui:define>

</ui:composition>